package com.klangner.lucene.index
{
	import flash.filesystem.File;
	import flash.filesystem.FileMode;
	import flash.filesystem.FileStream;
	
	import flexunit.framework.TestCase;
	
  public class InputReaderTest extends TestCase {
  	
    public function testNumDocs():void {
    	var fileStream:FileStream = new FileStream();
   		var reader:InputReader;
   		
   		var file:File = File.applicationDirectory.resolvePath("test-data/streams/stream1");
   		fileStream.open(file, FileMode.READ);
   		reader = new InputReader(fileStream);
   			
   		assertEquals(-2, reader.getInt32());
   		assertEquals(2, reader.getInt64());
   		assertEquals(2, reader.getInt64());
   		
   		fileStream.close();
    }
  }
}